Weblogic Serverで使用するために、$HOME/.odbc.iniまたはsys.odbc.iniファイルにTimesTen DSNを作成します。このマニュアルの例では、次のDSNを使用します。
[WLS] DataStore=/home/wls/ds/WLS PermSize=64 UID=wls PWD=wls [WLS_CS] TTC_SERVER=LocalHost_tt60 TTC_SERVER_DSN=WLS UID=wls PWD=wlsWeblogicアプリケーションでTimesTenデータ・ストアにアクセスするには、接続プールおよび関連するデータソースをサーバー用に構成する必要があります。通常は、Weblogic ServerコンソールのGUIを使用して行います。このコンソールで行った構成変更は、サーバー・ディレクトリ内のconfig.xmlと呼ばれるファイルに書き込まれます。
サーバーのconfig.xmlファイルでは、構成情報は次のように記述されています。WebLogicコンソールのGUIを使用してTimesTenを構成する場合は、そのGUIでの構成の指針として次のXMLディスクリプタを使用できます。
Weblogic Server用に構成可能なTimesTen接続は4種類あります。
<JDBCConnectionPool ConnLeakProfilingEnabled="true" ConnProfilingEnabled="true" DriverName="com.timesten.jdbc.TimesTenDriver" InitialCapacity="1" MaxCapacity="16" Name="TimesTenLocalPool" PasswordEncrypted="" Properties="" StatementCacheSize="32" Targets="myserver" TestConnectionsOnCreate="true" TestConnectionsOnRelease="true" TestConnectionsOnReserve="false" TestTableName="SYS.MONITOR" URL="jdbc:timesten:WLS;UID=wls;PWD=wls"/> <JDBCTxDataSource EnableTwoPhaseCommit="true" JNDIName="TimesTenLocalDS" Name="TimesTenLocalDS" PoolName="TimesTenLocalPool" RowPrefetchEnabled="true" Targets="myserver"/>
<JDBCConnectionPool ConnLeakProfilingEnabled="true" ConnProfilingEnabled="true" DriverName="com.timesten.jdbc.TimesTenDriver" MaxCapacity="16" Name="TimesTenLocalClientPool" PasswordEncrypted="" Properties="user=" StatementCacheSize="32" Targets="myserver" TestConnectionsOnCreate="true" TestConnectionsOnRelease="true" TestTableName="SYS.MONITOR" URL="jdbc:timesten:client:WLS_CS;UID=wls;PWD=wls"/> <JDBCTxDataSource EnableTwoPhaseCommit="true" JNDIName="TimesTenLocalClientDS" Name="TimesTenLocalClientDS" PoolName="TimesTenLocalClientPool" RowPrefetchEnabled="true" Targets="myserver"/>
<JDBCConnectionPool ConnLeakProfilingEnabled="true" ConnProfilingEnabled="true" DriverName="com.timesten.jdbc.xa.TimesTenXADataSource" KeepLogicalConnOpenOnRelease="true" MaxCapacity="16" Name="TimesTenXAPool" NewXAConnForCommit="true" PasswordEncrypted="{3DES}y+DgSei/wXo=" Properties="URL=jdbc:timesten:WLS;user=wls" StatementCacheSize="32" SupportsLocalTransaction="true" Targets="myserver" TestConnectionsOnCreate="true" TestConnectionsOnRelease="true" TestTableName="SYS.TABLES" URL="jdbc:timesten:WLS"/> <JDBCTxDataSource JNDIName="TimesTenXADS" Name="TimesTenXADS" PoolName="TimesTenXAPool" R owPrefetchEnabled="true" Targets="myserver"/>
<JDBCConnectionPool ConnLeakProfilingEnabled="true" ConnProfilingEnabled="true" DriverName="com.timesten.jdbc.xa.TimesTenXADataSource" KeepLogicalConnOpenOnRelease="true" MaxCapacity="16" Name="TimesTenXAClientPool" NewXAConnForCommit="true" PasswordEncrypted="{3DES}y+DgSei/wXo=" Properties="URL=jdbc:timesten:client:WLS_CS;user=wls" StatementCacheSize="32" SupportsLocalTransaction="true" Targets="myserver" TestConnectionsOnCreate="true" TestConnectionsOnRelease="true" TestTableName="SYS.TABLES" URL="jdbc:timesten:client:WLS_CS"/> <JDBCTxDataSource JNDIName="TimesTenXAClientDS" Name="TimesTenXAClientDS" PoolName="TimesTenXAClientPool" RowPrefetchEnabled="true" Targets="myserver"/>